☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

_snippets_from_glob[*]

Table of contents

Description:

This key represents an individual glob pattern string in the _snippets_from_glob array.

The value is a string that specifies a file path pattern relative to the root of your repository. The path must end in the file extension .cloudcannon.snippets.yml.

Appears in:
└── _snippets_from_glob
    └── [*]
Type:
string
Examples:

In this example, each Custom Snippet has its own Configuration File in the .cloudcannon/snippets/ folder. The value of the _snippets_from_glob key tells CloudCannon to use the callout.cloudcannon.snippets.yml file in that folder.

Copied to clipboard
_snippets_imports:
  eleventy_liquid: true
_snippets_from_glob:
  - /.cloudcannon/snippets/callout.cloudcannon.snippets.yml
{
  "_snippets_imports": {
    "eleventy_liquid": true
  },
  "_snippets_from_glob": [
    "/.cloudcannon/snippets/callout.cloudcannon.snippets.yml"
  ]
}
Open in a new tab